/**
 * Created by wry on 2014/12/13.
 */

var Client = require('node-rest-client').Client;

var options = {
    requestConfig: {
        timeout: 1000, //request timeout in milliseconds
        noDelay: true //Enable/disable the Nagle algorithm
    },
    responseConfig: {
        timeout: 1000 //response timeout
    }
};

global.restClient = new Client(options);


var solr = require('solr-client');
global.solrGoodsClient = solr.createClient({host:SolrHostIp,port:SolrPort,core: 'goods'});
